<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head">
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="icon" type="image/ico" href="/images/logo.png"/>
    <title>项目管理系统</title>
    <link th:href="@{/layui/css/layui.css}" rel="stylesheet"/>
    <link th:href="@{/layui/css/font-face.css}" rel="stylesheet"/>
</head>
<body>
<!--后台头部-->
<div th:fragment="headerhtml" class="layui-header">
    <div class="layui-container">
        <div class="layui-logo"><img src="/images/logo-back.png"></div>
        <ul class="layui-nav layui-layout-left menu-dom" lay-filter="test">
            <li class="layui-nav-item layui-nav-itemed">
                <a class="" href="/page/index">首页</a>
            </li>
            <li class="layui-nav-item layui-nav-itemed">
                <a class="" href="/page/list">文章管理</a>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;">其它管理</a>
                <dl class="layui-nav-child">
                    <dd><a href="/page/discuss" style="color: #000000">评论管理</a></dd>
                    <dd th:if="${session.isAdmin}"><a href="/page/user" style="color: #000000">用户管理</a></dd>
                </dl>
            </li>
            <!--<li class="layui-nav-item">
                <a href="/page/discuss">评论管理</a>
            </li>
            <li class="layui-nav-item" th:if="${session.isAdmin}">
                <a href="/page/user">用户管理</a>
            </li>-->
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img th:src="${session.user.imgUrl}" class="layui-nav-img">
                    <span th:text="${session.user.nickName}"></span>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="/page/info">基本资料</a></dd>
                    <dd><a href="/page/pass">修改密码</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="/user/logout">退了</a></li>
        </ul>
    </div>
</div>
<!--后台底部-->
<div class="layui-footer" th:fragment="footerhtml" style="width: 100%;left: 0;padding: 0;color: #666666">
    <div class="layui-container" style="background-color: #ffffff">
        <!-- 底部固定区域 -->
        © 2020 poetry &nbsp;&nbsp;&nbsp;&nbsp;特別鳴謝&nbsp;&nbsp;<a href="https://www.layui.com/"
                                                                 target="_blank">Layui.com</a>&nbsp;&nbsp;、<a
            href="https://www.freemoban.com/" target="_blank">免费模板网</a>
    </div>
</div>
<!--前台头部-->
<nav th:fragment="frontheaderhtml" class="navbar navbar-expand-md navbar-light">
    <div class="container">
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo03"
                aria-controls="navbarTogglerDemo03" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <a class="navbar-brand" href="/blog/index"><img src="/img/logo.png"></a>
        <div class="collapse navbar-collapse justify-content-end" id="navbarTogglerDemo03">
            <ul class="navbar-nav">
                <li class="nav-item">
                    <a class="nav-link" href="/blog/index">首页</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/blog/index#list">文章列表</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/blog/designer">数据库设计工具</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/blog/about">关于</a>
                </li>
            </ul>
        </div>
    </div>
</nav>
<!--前台底部-->

<footer th:fragment="frontfooterhtml" class="container-fluid mt-1 p-4">
    <div class="container ">
        <div class="row pb-1">
            <!-- Footer logo -->
            <div class="col-lg-3 col-md-12"><img src="/img/logo.png"></div>

            <!-- footer links -->
            <div class="col-lg-6 col-md-12">
                <ul class="nav justify-content-center">
                    <li class="nav-item">
                        <a class="nav-link" href="/blog/index">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/blog/index#list">文章列表</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/blog/designer">数据库设计工具</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/blog/about">关于</a>
                    </li>
                </ul>
            </div>

            <!-- footer social links -->
            <div class="col-lg-3 col-md-12">
                <ul class="nav justify-content-end">
                    <li class="nav-item">
                        <a class="nav-link active btn btn-light" href="javascript:;"><i class="fab fa-weixin"></i></a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active btn btn-light button-method" data-method="qqShare" href="javascript:;"><i class="fab fa-qq"></i></a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active btn btn-light" href="javascript:;"><i class="fab fa-weibo"></i></a>
                    </li>
                </ul>
            </div>
            <hr>
        </div>
        <hr>
        <!-- copyright text -->
        <div class="row pt-2">
            <div class="col-lg-12 text-center footer-style">
                <div  th:each="info,infoStat : ${linkList}">
                    <span th:if="${infoStat.index==0}">友情链接：</span>
                    <a th:href="${info.url}" target="_blank" th:text="${info.title}"></a>
                </div>
                <br/>

                <!--<span>特別鳴謝&nbsp;&nbsp;
                    <a href="https://www.layui.com/" target="_blank">Layui.com</a>、<a href="https://www.freemoban.com/" target="_blank">免费模板网</a>
                </span>-->
                <br/>
                <span><a href="https://gitee.com/LearnToStrong_admin/Poetry-Blog" target="_blank">码云</a></span>
                <span style="color:#91829e;">MIT license</span>
                <br/>
                <span>&copy; 2020 poetry 版权归创造者所有</span>
                <!--<span><a href="http://beian.miit.gov.cn/" target="_blank">黔ICP备20005506号</a></span>-->
            </div>
        </div>
    </div>
</footer>
</body>
</html>